set(WIZNET_LIB_SRC 
        ../../libraries/Ethernet/W5100S/w5100s.c
        ../../libraries/Ethernet/socket.c
        ../../libraries/Ethernet/wizchip_conf.c
        ../../libraries/Internet/DHCP/dhcp.c 
        )
include_directories(../../libraries/Ethernet
                ../../libraries/Ethernet/W5100S
                ../../libraries/Internet/DHCP
              
)

add_executable(dhcp
        dhcp_client.c
        ${WIZNET_LIB_SRC}
        )

# pull in common dependencies and additional spi hardware support
target_link_libraries(dhcp pico_stdlib hardware_spi)

pico_enable_stdio_usb(dhcp 1)
pico_enable_stdio_uart(dhcp 0)


# create map/bin/hex file etc.
pico_add_extra_outputs(dhcp)

# add url via pico_set_program_url
example_auto_set_url(dhcp)
